<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    // +----------------------------------------------------------------------
    // | 应用设置
    // +----------------------------------------------------------------------

    // 应用命名空间
    'app_namespace'          => 'app',
    // 应用调试模式
    'app_debug'              => true,
    // 应用Trace
    'app_trace'              => false,
    // 应用模式状态
    'app_status'             => 'remote',
    // 是否支持多模块
    'app_multi_module'       => true,
    // 入口自动绑定模块
    'auto_bind_module'       => false,
    // 注册的根命名空间
    'root_namespace'         => [],
    // 扩展函数文件
    'extra_file_list'        => [THINK_PATH . 'helper' . EXT],
    // 默认输出类型
    'default_return_type'    => 'json',
    // 默认AJAX 数据返回格式,可选json xml ...
    'default_ajax_return'    => 'json',
    // 默认JSONP格式返回的处理方法
    'default_jsonp_handler'  => 'jsonpReturn',
    // 默认JSONP处理方法
    'var_jsonp_handler'      => 'callback',
    // 默认时区
    'default_timezone'       => 'PRC',
    // 是否开启多语言
    'lang_switch_on'         => false,
    // 默认全局过滤方法 用逗号分隔多个
    'default_filter'         => '',
    // 默认语言
    'default_lang'           => 'zh-cn',
    // 应用类库后缀
    'class_suffix'           => false,
    // 控制器类后缀
    'controller_suffix'      => false,

    // +----------------------------------------------------------------------
    // | 模块设置
    // +----------------------------------------------------------------------

    // 默认模块名
    'default_module'         => 'front',
    // 禁止访问模块
    'deny_module_list'       => ['common'],
    // 默认控制器名
    'default_controller'     => 'Index',
    // 默认操作名
    'default_action'         => 'index',
    // 默认验证器
    'default_validate'       => '',
    // 默认的空控制器名
    'empty_controller'       => 'Error',
    // 操作方法后缀
    'action_suffix'          => '',
    // 自动搜索控制器
    'controller_auto_search' => false,

    // +----------------------------------------------------------------------
    // | URL设置
    // +----------------------------------------------------------------------
   
    // PATHINFO变量名 用于兼容模式
    'var_pathinfo'           => 's',
    // 兼容PATH_INFO获取
    'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
    // pathinfo分隔符
    'pathinfo_depr'          => '/',
    // URL伪静态后缀
    'url_html_suffix'        => 'html',
    // URL普通方式参数 用于自动生成
    'url_common_param'       => false,
    // URL参数方式 0 按名称成对解析 1 按顺序解析
    'url_param_type'         => 0,
    // 是否开启路由
    'url_route_on'           => true,
    // 路由使用完整匹配
    'route_complete_match'   => true,
    // 路由配置文件（支持配置多个）
    'route_config_file'      => ['route'],
    // 是否强制使用路由
    'url_route_must'         => false,
    // 域名部署
    'url_domain_deploy'      => false,
    // 域名根，如thinkphp.cn
    'url_domain_root'        => '',
    // 是否自动转换URL中的控制器和操作名
    'url_convert'            => false,
    // 默认的访问控制器层
    'url_controller_layer'   => 'controller',
    // 表单请求类型伪装变量
    'var_method'             => '_method',
    // 表单ajax伪装变量
    'var_ajax'               => '_ajax',
    // 表单pjax伪装变量
    'var_pjax'               => '_pjax',
    // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
    'request_cache'          => false,
    // 请求缓存有效期
    'request_cache_expire'   => null,

    // +----------------------------------------------------------------------
    // | 模板设置
    // +----------------------------------------------------------------------

    'template'               => [
        // 模板引擎类型 支持 php think 支持扩展
        'type'         => 'Think',
        // 模板路径
        'view_path'    => '',
        // 模板后缀
        'view_suffix'  => 'html',
        // 模板文件名分隔符
        'view_depr'    => DS,
        // 模板引擎普通标签开始标记
        'tpl_begin'    => '{',
        // 模板引擎普通标签结束标记
        'tpl_end'      => '}',
        // 标签库标签开始标记
        'taglib_begin' => '{',
        // 标签库标签结束标记
        'taglib_end'   => '}',
    ],
   
    // 视图输出字符串内容替换
    'view_replace_str'       => [
        '__JS__'  => 'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/static/js',
        '__CSS__'  =>'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/static/css',
        '__IMG__'  =>'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/static/img',
        '__THEMES__'  =>'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/static/themes',
        '__URL__'  =>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.',
        '__shareWxURL__'=>'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.ShareController/shareWx',
        '__shareRedPack__'=>'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.ShareController/shareRedPack',
        '__storeImgUrl__'=>'sunhongliang.top.1048.url-test.com/zfshlm/public/upload',
        '__prefixIMG__'=>'store.zfshpt.com/',
        '__suffixIMG__'=>'',//?imageView2/0/w/250/h/250/format/jpg/q/75|watermark/1/image/aHR0cDovL3N0b3JlLnpmc2hwdC5jb20vbG9nbzQ4LnBuZw==/dissolve/100/gravity/SouthEast/dx/0/dy/0|imageslim
    ],
    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl'  => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
    'dispatch_error_tmpl'    => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
    
    // +----------------------------------------------------------------------
    // | 异常及错误设置
    // +----------------------------------------------------------------------

    // 异常页面的模板文件
    'exception_tmpl'         => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',

    // 错误显示信息,非调试模式有效
    'error_message'          => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg'         => false,
    // 异常处理handle类 留空使用 \think\exception\Handle
    'exception_handle'       => 'app\lib\exception\ExceptionHandler',

    // +----------------------------------------------------------------------
    // | 日志设置
    // +----------------------------------------------------------------------

    'log'                    => [
        // 日志记录方式，内置 file socket 支持扩展
        'type'  => 'test',
        // 日志保存目录
        'path'  => LOG_PATH,
        // 日志记录级别
        'level' => [],
    ],

    // +----------------------------------------------------------------------
    // | Trace设置 开启 app_trace 后 有效
    // +----------------------------------------------------------------------
    'trace'                  => [
        // 内置Html Console 支持扩展
        'type' => 'Html',
    ],

    // +----------------------------------------------------------------------
    // | 缓存设置
    // +----------------------------------------------------------------------

    'cache'                  => [
        // 驱动方式
        'type'   => 'File',
        // 缓存保存目录
        'path'   => CACHE_PATH,
        // 缓存前缀
        'prefix' => '',
        // 缓存有效期 0表示永久缓存
        'expire' => 0,
    ],

    // +----------------------------------------------------------------------
    // | 会话设置
    // +----------------------------------------------------------------------

    'session'                => [
        'id'             => '',
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => '',
        // SESSION 前缀
        'prefix'         => 'think',
        // 驱动方式 支持redis memcache memcached
        'type'           => '',
        // 是否自动开启 SESSION
        'auto_start'     => true,
    ],

    // +----------------------------------------------------------------------
    // | Cookie设置
    // +----------------------------------------------------------------------
    'cookie'                 => [
        // cookie 名称前缀
        'prefix'    => '',
        // cookie 保存时间
        'expire'    => 0,
        // cookie 保存路径
        'path'      => '/',
        // cookie 有效域名
        'domain'    => '',
        //  cookie 启用安全传输
        'secure'    => false,
        // httponly设置
        'httponly'  => '',
        // 是否使用 setcookie
        'setcookie' => true,
    ],

    //分页配置
    'paginate'               => [
        'type'      => 'bootstrap',
        'var_page'  => 'page',
        'list_rows' => 15,
    ],
    
    'version'=>'v2',
    //Redis配置
    'host' => "r-2ze9c46547a98a34.redis.rds.aliyuncs.com",
    'port' => 6379,
  
    'user' => "r-2ze9c46547a98a34",
    'pwd' => "zfshlmredis098ABC",
    
    //支付宝配置
    'PID'=>'2088521555434288',
    'AliMD5Key'=>'hel9vkzusrb66sa26qqr304m93fadw4i',
    'AliAppid'=>'2018061960396675',
    'notify_url'=>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.CallBackController/AliNotify',//支付宝服务器主动通知商户网站里指定的页面http路径。 (异步请求地址，可为空）
    'return_url'=>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.CallBackController/AliReturn',//支付宝处理完请求后，当前页面自动跳转到商户网站里指定页面的http路径。 (同步请求地址，可为空）
    'PAYGAGEWAY'=>'https://mapi.alipay.com/gateway.do',//阿里支付网关
    'NEW_PAYGAGEWAY'=>'https://openapi.alipay.com/gateway.do',//阿里支付网关新版本
    'notify_verify'=>'https://mapi.alipay.com/gateway.do?service=notify_verify&partner=2088521555434288&notify_id=',//通知验证接口
    'APPPRIVATEKEY'=>'MIIEpQIBAAKCAQEAp1//jtf3YJt5jCtOTYKM5g/rJ4ZeDa08ImzDkXx8Zf0+KzW52xF9wGIOeLe2vwUEJudSjb+0siZQFBRpMznB210fdI7oKjb4Hfj1IdvjWUcPAQMU+Z7MXJOVGvHcPN0iVnPHda5OqxSMTEvO+7eQ1osZGicQmHvobGTr294+UOZIhPaACVxPeuIDv4Awi/PPVG4WDtXvOntOprUxr4G1uvOj3fSFaMq8v6kjSeMIgYsOQSgEBHctSpx8x+iBfll6F99QoO5oW4suWjk+UBynjeX2oD2aIzu/u4q7SxDi90qDN3/MXTVh6yNYVN59p2IpnPYLf306aPUXJ0hymH2m2wIDAQABAoIBAQCPB1YX9y4KfFIOGiO70MgfAZNuH0DYZyVwNYmaFcsoTJSH0E2WiwfvEtxTBItCCUNXC25ce2oqotrjjd2oTL8Aej+bF1QGXxsAYfL4kDNj43lK4BtYhP8WTXepou0VhdMGFcJpKh9HyzNpL48dQ+ydqhg1ZRSleZ1Qo516Mh0Ge6HNHkfJaeqZ0Pt3eEjP/wpTNwcoouohcnS5YOoLLpCB960OeSbgq7Vj26mvEexoqBmDrYbFosXGqMzfeXa+Uz+rsR5ScSziCP7VK35nQnHBhSNTO2xCQ2iGvXwRU4XeaUTupGIUkB8/SHHdh4poO472VXyr7tqjOcXsEbIiAtyhAoGBAM9Jf+JV5LOXt7C8sMDN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DAQAB',
    'NEW_APPPUBLICEKEY'=>'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAheP9ej809Z+fwkgswzq5txoe/K3nBSumVhu+Il56DOyzOgJg9rfvB7+Rjz3573G26fxmqrtizE04eP+BwtjCPvwN+hX90lfOFK8g177p9umZz3Qn67sZCVod+ToNeuquJuGup9+dCW9iA5uC3BNQsKtHjJSt5/LIJYVXwnS2qdZpmJk6M/e8e93qPWGSTHEF5DzWjdLS2TN69ruKIfuIfOEQtlkcp83n7XgwpCicRV6oT8/yoFFOg1si56oVMy/0GAicOe+j0kJ0Unv35M4TnUVOA+UD3RYo7LDA/YnionYQKS+xP1qi0Z7GdLlnMQfShYTgEqC+qB3RoZJyQGftHwIDAQAB',
    //微信参数配置
      'MemberWithdrawNum'=>5,//每日限制提现次数
      'RadPackFloat'=>0.2,
      'HTTP_HOST'=>'www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6',
      'shareHongBaoPercent'=>1.2,//分享红包与基础包的百分比
      'defaultNum'=>10,
      'template_id'=>'F0Ay93UuKtBKcbg2A7jdjBp_HTaP_RaGgu-FBk6ItSQ',//订单通知模板
      'shareWxURL'=>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.ShareController/shareWx',
      'gahPayURL'=>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.PayController/gzhPay',
      'URL'=>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/',
      'Token'=>'zfshlm41',
      'KEY'=>'zhifushenghuolianmeng66666666666',//商户KEY，定义为常量
      'appid'=>'wxaf034ee5c10a4dfc',
      'appsecret'=>'8a4ab31b127c8d7fe573f4140bdf8251',
      'mch_id'=>'1433148602', //商户ID
      'send_name'=>'北京至富科技有限公司',//商户名称
      'client_ip'=>'47.93.11.60',//调用接口的机器Ip地址
      'desc'=>'商家向至富科技公司提现',
      'UOURL'=>'https://api.mch.weixin.qq.com/pay/unifiedorder',//统一下单地址
      'CODEURL' => 'https://open.weixin.qq.com/connect/oauth2/authorize?',
      'OPENIDURL' => 'https://api.weixin.qq.com/sns/oauth2/access_token?',
      'redirect_url'=>'www.zfshlm.com/155e7ac5857fb33bb5d9430ef3be1699/thinkphp32/Home/Index/OrderQuery',
      'SEORDERURL'=>'https://api.mch.weixin.qq.com/pay/orderquery',//查询订单接口
      'NOTIFY'=>'http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm_5_0/public/index.php/front/v2.CallBackController/Notify',//通知地址
      'NOTIFYForShop'=>'www.zfshlm.com/155e7ac5857fb33bb5d9430ef3be1699/thinkphp32/Home/Index/NotifyForShop',//通知地址
      'HONGBAOURL'=>'https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack',
      'wishing'=>'祝您好运气！',//红包祝福语
      'act_name'=>'支付扫码返红包活动！',//活动名称
      'act_share'=>'fenxiang！',//活动名称
      'remark'=>'备注',//备注
      'PayForMemberUrl'=>'https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers',//企业像个人付款URL
];
